package org.wlc.demov3.service.impl;


import org.wlc.demov1.ActivityService;
import org.wlc.Result;
import org.wlc.demov1.EStatus;
import org.wlc.demov3.service.State;

/**
 * 活动状态；活动中
 * @author wanglichao
 */
public class DoingState extends State {
    @Override
    public Result arraignment(String activityId, Enum<EStatus> currentStatus) {
        return new Result("0001", "活动中不可提审");
    }
    @Override
    public Result checkPass(String activityId, Enum<EStatus> currentStatus) {
        return new Result("0001", "活动中不可审核通过");
    }
    @Override
    public Result checkRefuse(String activityId, Enum<EStatus> currentStatus) {
        return new Result("0001", "活动中不可审核拒绝");
    }

    @Override
    public Result checkRevoke(String activityId, Enum<EStatus> currentStatus) {
        return new Result("0001", "活动中不可撤销审核");
    }
    @Override
    public Result close(String activityId, Enum<EStatus> currentStatus) {
        ActivityService.execStatus(activityId, currentStatus, EStatus.Close);
        return new Result("0000", "活动关闭成功");
    }
    @Override
    public Result open(String activityId, Enum<EStatus> currentStatus) {
        return new Result("0001", "活动中不可开启");
    }

    public Result doing(String activityId, Enum<EStatus> currentStatus) {
        return new Result("0001", "活动中不可重复执行");
    }

}
